package com.briup.cms.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

/**
 * @TableName cms_user
 */
@TableName(value ="cms_user")
@Data
public class CmsUser implements Serializable {
    @TableId(type = IdType.ASSIGN_ID)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    private String username;

    private String password;

    private String avatar;

    private String gender;

    private String email;

    private String phone;

    private LocalDateTime registerTime;

    private String status;

    private String birthday;

    private Integer roleId;

    private Integer isVip;

    private LocalDateTime expiresTime;

    private Integer deleted;

    private static final long serialVersionUID = 1L;
}